export const CollApsedReducer=(prevState={isCollapsed:false},action)=>{
  let{type}=action
  switch(type){
    case "change-collapsed":
      let newstate={...prevState}
      newstate.isCollapsed=!newstate.isCollapsed
      return newstate
      default:
        return prevState
  }
}